package com.poc.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "TASKS")
@Entity
public class Task extends VersionedEntityWithID implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "TASK_ARGUMENT", length = 200, nullable = false)
    private String taskArgument;

    @Column(name = "TASK_STATUS", length = 20, nullable = false)
    private String task_status = "pending";

    public String getTaskArgument() {
        return taskArgument;
    }

    public void setTaskArgument(String taskArgument) {
        this.taskArgument = taskArgument;
    }

    public String getTask_status() {
        return task_status;
    }

    public void setTask_status(String task_status) {
        this.task_status = task_status;
    }

    public Task() {

    }

    public Task(String taskArgument) {
        this.taskArgument = taskArgument;
    }
}